package com.tanguy.user.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by dab on 2017/11/14 0014 09:41
 */

public class HotelTypeBean {

    private List<TeseBean> tese;
    private List<TypeBean> type;

    public List<String> getTypeList() {
        List<String> list = new ArrayList<>();
        if (type == null) return list;
        for (int i = 0; i < type.size(); i++) {
            TypeBean typeBean = type.get(i);
            list.add(typeBean.getName());
        }
        return list;
    }
    public List<String> getTeseList() {
        List<String> list = new ArrayList<>();
        if (tese == null) return list;
        for (int i = 0; i < tese.size(); i++) {
            TeseBean teseBean = tese.get(i);
            list.add(teseBean.getName());
        }
        return list;
    }

    public List<TeseBean> getTese() {
        return tese;
    }

    public void setTese(List<TeseBean> tese) {
        this.tese = tese;
    }

    public List<TypeBean> getType() {
        return type;
    }

    public void setType(List<TypeBean> type) {
        this.type = type;
    }

    public static class TeseBean {
        /**
         * id : 31
         * name : 行李寄送
         * oneId : 5
         */

        private int id;
        private String name;
        private int oneId;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getOneId() {
            return oneId;
        }

        public void setOneId(int oneId) {
            this.oneId = oneId;
        }
    }

    public static class TypeBean {
        /**
         * id : 1
         * name : 特色酒店
         * oneId : 1
         */

        private int id;
        private String name;
        private int oneId;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getOneId() {
            return oneId;
        }

        public void setOneId(int oneId) {
            this.oneId = oneId;
        }
    }
}
